package net.kts.story.map.overlay;


import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class StorySelectMarkerOveray  extends ItemizedOverlay<OverlayItem>{
	private ArrayList<OverlayItem> overlayItems;
	public StorySelectMarkerOveray(Drawable defaultMarker) {
		super(boundCenterBottom(defaultMarker));
		this.overlayItems = new ArrayList<OverlayItem>();
	}
	public void updateOverlay(OverlayItem overlayItem){
		overlayItems.clear();
		overlayItems.add(overlayItem);
		populate();
	}

	@Override
	protected OverlayItem createItem(int i) {
		return overlayItems.get(i);
	}

	@Override
	public int size() {
		return overlayItems.size();
	}
	

}
